package com.gxa.service;

import com.gxa.common.R;
import com.gxa.entity.DistrictSysNotice;

import java.util.Date;

public interface NoticeService {
    //分页查询所有公告
    R findNoticeList(Integer currentPage, Integer pageSize);
    //按条件分页查询
    R selectByTitle(Integer currentPage, Integer pageSize, String noticeTitle, String createPeople, Date createDate, int status);
    //新增
    R addNotice(DistrictSysNotice districtSysNotice);
    //修改
    R updateNotice(DistrictSysNotice districtSysNotice);
    //删除
    R delNotice(int noticeId);
    //查看详情
    R detailsNotice(int noticeId);
    //发布
    R releaseNotice(int noticeId,Date releaseDate);
    //撤回
    R withdrawNotice(int noticeId);
}
